package com.gem.day06;

/**
 * 测试单例设计模式
 */
public class TestSingletonDemo {
	public static void main(String[] args) {
		/*SingeltonDemo sd1 = new SingeltonDemo();
		SingeltonDemo sd2 = new SingeltonDemo();*/

		SingeltonDemo sd1 = SingeltonDemo.getInstance();
		SingeltonDemo sd2 = SingeltonDemo.getInstance();
		System.out.println(sd1 == sd2);
	}
}
